package org.jeecg.modules.sistersophie.facade;

import org.jeecg.modules.sistersophie.entity.AccountInfo;

import java.math.BigDecimal;

public interface AccountInfoFacade {

    /**
     * 根据学生ID 账户类型 获取账户信息
     * @param studentId
     * @param type
     * @return
     */
    AccountInfo selectByStudentAndType(Integer studentId, Integer type);

    int addAccount(Integer id, BigDecimal amount, Integer version);

    int subAccount(Integer id, BigDecimal amount, Integer version);

    int freeAccount(Integer id, BigDecimal amount, Integer version);

    int unFreeAccount(Integer id, BigDecimal amount, Integer version);
}
